import pymysql
from common.com_conf import Conf


class Mysql(object):
    mysql = pymysql.connect(user=Conf.yaml["dpb"]["basic"]["django"]['mysql']['username'],
                            password=Conf.yaml["dpb"]["basic"]["django"]['mysql']['password'],
                            host=Conf.yaml["dpb"]["basic"]["django"]['mysql']['host'],
                            port=Conf.yaml["dpb"]["basic"]["django"]['mysql']['port'],
                            database=Conf.yaml["dpb"]["basic"]["django"]['mysql']['db'],
                            )
